import sys, os
import pkg_resources

path = os.path.realpath(__file__)
working_path = path[:path.rfind('/cron')]
sys.path.insert(0, '/usr/lib/python2.5/site-packages/Leazy-0.2.15-py2.5.egg')
sys.path.insert(0, working_path)
os.chdir(working_path)

from etc import config
os.environ['PYTHON_EGG_CACHE'] = config.python_egg_cache
